<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/jquery-1.9.1.min.js"></script>

    <link rel="stylesheet" type="text/css" href="../plugins/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" type="text/css" href="../css/fs.css" media="all"/>
    <script type="text/javascript" src="../plugins/layui/layui.js"></script>
    <script src="../js/tools.js"></script>

    <script src="../controller/hotSearch.js?v="+ Date.now()></script>

</head>
<body>
    <blockquote style="margin-top: 10px;margin-left: 5px;margin-right: 5px;height: 60px" class="layui-elem-quote news_search">
        <button class="layui-btn" id="add" data-type="reload"><i class="layui-icon">&#xe654;</i>新增</button>
    </blockquote>
    <div style="margin-left: 5px;margin-right: 5px" >
        <table class="layui-hide" lay-filter="demo" id="table"></table>
    </div>
    <!--热搜窗口-->
    <div style="display: none; margin-top:30px" id="addUpdate">
        <form class="layui-form" action="" lay-filter="hotSearch">

            <div class="layui-form-item">
                <label class="layui-form-label">热搜词:</label>
                <input type="hidden" id="topicId" name="id">
                <div style="width: 400px" class="layui-input-block">
                    <input type="text"    name="name"  lay-verify="required|title"   class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">热搜词排序:</label>
                <div style="width: 400px" class="layui-input-block">
                    <input type="number"    name="searchIndex"  lay-verify="number|search"   class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="addUpdate">立即提交</button>
                </div>
            </div>
        </form>
    </div>
    <!--热搜窗口-->
    <script type="text/html" id="barDemo">
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    </script>

</body>
</html>